Version

CreateInOperandExpression<TDataObjectType> Method

Creates an System.Linq.Expressions.Expression that evaluates for case insensitive inequality against a list of values.
Syntax
'Declaration
 
Protected Friend Overridable Function CreateInOperandExpression(Of TDataObjectType)( _
   ByVal fieldName As String, _
   ByVal values As IList, _
   Optional ByVal isCaseSensitive As Boolean, _
   Optional ByVal dataItem As Object _
) As Expression(Of Func(Of TDataObject,Boolean))
protected internal virtual Expression<Func<TDataObject,bool>> CreateInOperandExpression<TDataObjectType>( 
   string fieldName,
   IList values,
   bool isCaseSensitive,
   object dataItem
)

Parameters

fieldName
The property that will be evaluated on.
values
The IList of values that will be analyzed against.
isCaseSensitive
For string comparisons, whether or not they are case sensitive.
dataItem

Type Parameters

TDataObjectType
The object type that the System.Linq.Expressions.Expression will be applied over.

Return Value

An System.Linq.Expressions.Expression which will evaluate for the condition.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also